/*
 * @LastEditors: Yang.Zzz
 * @LastEditTime: 2024-05-17 14:48:43
 */
export default {  
    namespaced: true, // 启用命名空间  
    state: () => ({  
        userInfo: {}
    }),  
    mutations: {  
      SET_USERINFO(state, obj) {  
        state.userInfo = obj;  
      },  
    },  
    actions: {  
      async setUserInfo({ commit }, obj) {  
        // 模拟异步操作  
        // await new Promise(resolve => setTimeout(resolve, 1000));  
        commit('SET_USERINFO', obj);  
      },
    },  
  };